home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
d
/
dpaintv5_2program.dms
/
dpaintv5_2program.adf
/
Deutsch-DeluxePaintV
< prev
next >
Wrap
Text File
|
1994-10-21
|
17KB
|
506 lines
; $Id: Install-DeluxePaintV,v 1.7 94/08/10 15:58:27 lee Exp $
; $VER: Install-DeluxePaintV 1.7
;
; Copyright (c) 1994 Electronic Arts, Inc. All Rights Reserved.
(set app_prefix "DPaintV_")
(set app_disk1 "Install")
(set app_disk2 "Media")
(set app_disk3 "Examples")
(set app_disk4 "Extras")
(set app_volume1 (cat app_prefix app_disk1 ":"))
(set app_volume2 (cat app_prefix app_disk2 ":"))
(set app_volume3 (cat app_prefix app_disk3 ":"))
(set app_volume4 (cat app_prefix app_disk4 ":"))
(set expert_user_level 2)
(set orig_user_level @user-level)
; standard amiga error codes
(set RC_OK 0
RC_WARN 5
RC_ERROR 10
RC_FATAL 20
)
; program install options
(set INSTF_DPAINT 1
INSTF_DPLAYER 2)
;
; determine AmigaDos version and revision numbers
;
(set AmigaDos_Number (getversion))
(set AmigaDos_Version (/ AmigaDos_Number 65536))
(set AmigaDos_Revision (- AmigaDos_Number (* AmigaDos_Version 65536)))
;
; set up some message strings
;
(set format_msg
(cat
"Eine leere, nicht schreibgeschtzte Diskette als Zieldiskette "
"in das Laufwerk DF0 einlegen und auf \"Fortfahren\" klicken.\n\n"
"Nach Aufforderung die Quelldiskette (d. h. \"DPaintV_Installation\") "
"in ein beliebiges Laufwerk (auáer DF0) einlegen\n\n"
)
)
(set format_help
(cat
format_msg
"Vorsicht: Smtliche Daten auf der eingelegten, nicht schreibgeschtzten "
"Diskette werden gelscht!\n\n"
"Vergewissern Sie sich, daá die Original-DeluxePaint-V-"
"Quelldisketten schreibgeschtzt sind, bevor Sie fortfahren!"
)
)
; --------------------------------------------------------------------
; format_disk:
; standard floppy format procedure.
; if an error occurs during the format, a message will be put up
; and the user re-prompted.
;
; inputs:
; <DstDiskName> : The name to use when formatting the disk.
;
; outputs:
; <fmt_error> will be set to 0 if disk was formatted successfully,
; or some value <= RC_WARN if the user cancelled the format.
;
(procedure format_disk
(run "echo >ram:newline <nil: \"\"")
(run ("assign \"%s\" remove" (cat DstDisName ":")))
(user expert_user_level)
(set fmt_error RC_FATAL)
(until (<= fmt_error RC_WARN)
((set fmt_error
(run ("sys:system/format DRIVE DF0: NAME \"%s\" FFS NOICONS >NIL: <ram:newline" DstDiskName)
(help format_help)
(prompt (cat ("Erstellen der Diskette \"%s\"...\n\n" DstDiskName) format_msg))
(confirm)
)
)
(transcript "format_result = " fmt_error)
(if (> fmt_error RC_WARN)
(message ("Fehler beim Formatieren der Diskette \"%s\"" DstDiskName)))
))
(user orig_user_level)
(delete ram:newline)
)
; --------------------------------------------------------------------
(procedure setup_floppy_install
(user expert_user_level)
(message "Fr die vollstndige Installation auf Disketten sind 4 "
"Leerdisketten erforderlich. Bitte halten Sie die Disketten bereit.\n\n"
"Vorsicht: Bei dieser Installation wird vorausgesetzt, daá "
"mindestens zwei Diskettenlaufwerke vorhanden sind."
)
(user orig_user_level)
)
; --------------------------------------------------------------------
(procedure setup_hd_install
(message
"\nDeluxePaint V wird in einer neuen Schublade mit dem Namen "
"\"DPaintV\" installiert. Sie werden aufgefordert, fr die Schublade einen "
"Speicherort auf der Festplatte (oder einem Speichergert) anzugeben.")
(set app_locate
(askdir
(prompt "Geben Sie an, wo die DPaintV-Schublade erstellt "
"werden soll.")
(help @askdir-help)
(default @default-dest)
))
(set app_path (tackon app_locate "DPaintV"))
(makedir app_path (infos))
)
; --------------------------------------------------------------------
; copy_volume1
; copies files from <app_volume1> into the user's preselected
; destination directory. If we're doing a <hd_install> this procedure
; assumes <app_path> has already been set. If we're doing a
; floppy install, the files will be copied to the newly formatted
; 'DPaintV' disk.
;
; if either dpaint or dplayer are installed and catalogs directory
; will be created. This assumes that app_volume1 contains an empty
; catalogs directory and that the user will be prompted for language
; installation later.
;
(procedure copy_volume1
(complete 5)
(set program_options
(askoptions
(prompt "Welche Anwendungen mchten Sie installieren?")
(choices "DPaint" "DPlayer")
(help " DPaint - installiert DPaint und die erforderlichen Zusatzdateien\n"
" DPlayer - installiert DPaint Player \n\n"
@askoptions-help)
)
)
(if (not hd_install)
((set DstDiskName "DPaintV")
(set app_path (cat DstDiskName ":"))
(if program_options
((format_disk)
(if fmt_error (set program_options 0))))))
(if (bitand INSTF_DPAINT program_options)
(copyfiles
(prompt "Kopieren von DPaint und der Zusatzdateien ...")
(source app_volume1)
(dest app_path)
(choices "DPaint" "Libs" "Fonts")
(help @copyfiles-help)
(infos)
(fonts)
))
(complete 10)
(if (bitand INSTF_DPLAYER program_options)
(copyfiles
(prompt "Kopieren von DPlayer ...")
(source app_volume1)
(dest app_path)
(choices "DPlayer")
(infos)
(help @copyfiles-help)
))
(set @default-dest app_path)
)
; --------------------------------------------------------------------
(procedure copy_dir
(copyfiles
(prompt ("Kopieren von \"%s\" ..." app_dir))
(source app_volume)
(dest app_path)
(choices app_dir)
(help @copyfiles-help)
(infos)
(fonts)
(optional)
)
)
; --------------------------------------------------------------------
; copy_volume2
; copies files from <app_volume2> into the user's preselected
; destination directory. If we're doing a <hd_install> this procedure
; assumes <app_path> has already been set. If we're doing a
; floppy install, the files will be copied to the newly formatted
; <app_disk2> disk.
;
(procedure copy_volume2
(complete 15)
(set options
(askoptions
(prompt "Welche der folgenden Verzeichnisse mchten Sie installieren?")
(choices "Material" "Strukturen" "Muster" "Pinsel" "Bewegung" "Farben")
(help " Material - Beispiele fr Materialien (Kreide, lfarbe usw.)\n"
" Strukturen - Beispiele fr Papierstrukturen\n"
" Muster - Beispiele fr Fllmuster\n"
" Pinsel - Beispiele fr Pinsel\n"
" Bewegung - Beispiele fr Bewegungsablufe\n"
" Farben - Beispiele fr Farben/Paletten\n"
"\n"
@askoptions-help)
)
)
(if options
(if (not hd_install)
((set DstDiskName app_disk2)
(set app_path (cat DstDiskName ":"))
(format_disk)
(if fmt_error (set options 0)))))
(set app_volume app_volume2)
(if (bitand 1 options)
((set app_dir "Media") (copy_dir)))
(complete 20)
(if (bitand 2 options)
((set app_dir "Textures") (copy_dir)))
(complete 25)
(if (bitand 4 options)
((set app_dir "Patterns") (copy_dir)))
(complete 30)
(if (bitand 8 options)
((set app_dir "Brush") (copy_dir)))
(complete 35)
(if (bitand 16 options)
((set app_dir "Move") (copy_dir)))
(complete 40)
(if (bitand 32 options)
((set app_dir "Colours") (copy_dir)))
)
; --------------------------------------------------------------------
; copy_volume3
; copies files from <app_volume3> into the user's preselected
; destination directory. If we're doing a <hd_install> this procedure
; assumes <app_path> has already been set. If we're doing a
; floppy install, the files will be copied to the newly formatted
; <app_disk3> disk.
;
(procedure copy_volume3
(complete 45)
(set options
(askoptions
(prompt "Welche der folgenden Verzeichnisse mchten Sie installieren?")
(choices "Grafik" "Anims" "AnimPinsel" "Karafonts")
(help " Grafik - Beispielgrafiken \n"
" Anims - Beispielanimationen\n"
" AnimPinsel - Beispiele fr AnimPinsel\n"
" Karafonts - Beispiele fr farbige Schriften\n"
"\n"
@askoptions-help)
)
)
(if options
(if (not hd_install)
((set DstDiskName app_disk3)
(set app_path (cat DstDiskName ":"))
(format_disk)
(if fmt_error (set options 0)))))
(set app_volume app_volume3)
(if (bitand 1 options)
((set app_dir "Picture") (copy_dir)))
(complete 50)
(if (bitand 2 options)
((set app_dir "Anim") (copy_dir)))
(complete 55)
(if (bitand 4 options)
((set app_dir "Animbrush") (copy_dir)))
(complete 60)
(if (bitand 8 options)
((set app_dir "Karafonts") (copy_dir)))
)
; --------------------------------------------------------------------
; do_register
; asks the user if he/she wishs to run and register their
; copy of dpaint now. if the answer is yes, launches the program...
;
(procedure do_register
(working "DeluxePaint V wird ausgefhrt ...")
(run ("run >NIL: <NIL: \"%s\"" (tackon @default-dest "DPaint"))
(prompt "Wollen Sie Ihr DeluxePaint-V-Programm jetzt registrieren?")
(help "DeluxePaint V muá beim ersten Starten registriert werden. Wenn Sie "
"\"Fortfahren\" whlen, startet das Installationsprogramm DeluxePaint V, "
"und die Registrierdaten knnen direkt eingegeben werden. Halten Sie "
"Ihre Registrierkarte bereit. Wenn Sie \"berspringen\" whlen, knnen "
"Sie das Programm zu einem anderen Zeitpunkt aufrufen und registrieren."
)
(confirm)
)
)
; --------------------------------------------------------------------
; update_asl:
; updates asl.library to v38; asks expert users for confirmation.
;
; WARNING
; The installer WILL COPY the supplied library over the user's
; current library WITHOUT REGARD to the current library's version
; number!!! This procedure should NOT be called if the library
; version is v38 or better.
;
(procedure update_asl
(working "Prfen der Versionsnummer von \"asl.library\" ...")
(copylib (prompt "Aktualisieren von \"asl.library\" ...")
(help "Fr DeluxePaint V bentigen Sie \"asl.library\" "
"Version 38 (oder hher). Die Bibliothek sollte nur "
"dann aktualisiert werden, wenn sie nicht in der fr"
"DeluxePaint V erforderlichen Mindestversion vorliegt.\n\n"
@copylib-help
)
(source (tackon app_volume4 "v38_libs/asl.library"))
(dest "libs:")
(confirm))
)
; --------------------------------------------------------------------
; copy_volume4
; copies files from <app_volume4> into the user's preselected
; destination directory. If we're doing a <hd_install> this procedure
; assumes <app_path> has already been set. If we're doing a
; floppy install, the files will be copied to the newly formatted
; <app_disk4> disk.
;
; Updates the asl.library if necessary.
;
(procedure copy_volume4
(complete 65)
(set options
(askoptions
(prompt "Welche der folgenden Verzeichnisse mchten Sie installieren?")
(choices "Galerie" "Makros" "AA_Grafik" "Piktogramme")
(help " Galerie - Galerie-Grafiken \n"
" Makros - Beispiele fr ARexx-Makros\n"
" AA_Grafik - Beispiele fr AA-Grafiken \n"
" Piktogramme - Beispiele fr Piktogrammdateien\n"
"\n"
@askoptions-help)
)
)
(if options
(if (not hd_install)
((set DstDiskName app_disk4)
(set app_path (cat DstDiskName ":"))
(format_disk)
(if fmt_error (set options 0)))))
(set app_volume app_volume4)
(complete 70)
(if (bitand 1 options)
((set app_dir "Gallery") (copy_dir)))
(complete 75)
(if (bitand 2 options)
((set app_dir "Macros") (copy_dir)))
(complete 80)
(if (bitand 4 options)
((set app_dir "AGA_Art") (copy_dir)))
(complete 85)
(if (bitand 8 options)
((set app_dir "Icons") (copy_dir)))
(complete 90)
(set asl_version (/ (getversion "libs:asl.library") 65535))
(transcript "asl_version = " asl_version)
(if (< asl_version 38)
(update_asl))
)
; --------------------------------------------------------------------
; do_exit
; does the language installation
; does the program registrations if requested
; puts up regcard reminder and says thanks...
;
(procedure do_exit
(complete 95)
(set options
(askoptions
(prompt "Welchen Sprachkatalog mchten Sie installieren?")
(choices "Franais" "Deutsch")
(help "Franais - installiert die franzsischen Kataloge in DPaintV:Catalogs/Franais\n\n"
"Deutsch - installiert die deutschen Kataloge in DPaintV:Catalogs/Deutsch\n\n"
@askoptions-help)
)
)
(set app_volume (tackon app_volume4 "Catalogs"))
(set app_path (tackon @default-dest "Catalogs"))
(if (bitand 1 options)
((set app_dir "Franais") (copy_dir)))
(if (bitand 2 options)
((set app_dir "Deutsch") (copy_dir)))
(complete 98)
(if hd_install
(startup @app-name
(prompt "\nSoll die Zuweisung DPaintV: dem S:User-Startup hinzugefgt werden?")
(help "Alle von DeluxePaintV erstellten Piktogramme verwenden "
"standardmáig DPaintV:DPaint. Wenn die obige Zuweisung der "
"Startdatei hinzugefgt wird, starten die Dateien beim Doppelklicken "
"automatisch DeluxePaint V.\n\n"
@startup-help
)
(command ("Assign DPaintV: \"%s\" defer" @default-dest))
))
(if hd_install
(run ("assign DPaintV: \"%s\"" @default-dest)
(prompt ("\Soll DPaintV: \"%s\" jetzt zugewiesen werden?" @default-dest))
(help "DeluxePaint V sucht Grafiken, Pinsel und Strukturen "
"standardmáig nur in den Unterverzeichnissen der logischen "
"Zuweisung \"DPaintV:\".\n\n"
"Diese Zuweisung ist nur dann erforderlich, wenn "
"Sie vorhaben, DeluxePaint V auszufhren, ehe Sie "
"den Rechner unter Ausfhrung der Startdatei neustarten. "
)
(confirm)))
(complete 99)
(do_register)
(complete 100)
(user expert_user_level)
(message "\nDenken Sie daran, mglichst bald Ihre DeluxePaint-V- "
"Registrierkarte auszufllen und einzusenden.\n\n"
"Vielen Dank fr den Kauf von DeluxePaint V!"
)
(exit)
)
; --------------------------------------------------------------------
; This is the actual Install Script
; --------------------------------------------------------------------
;
; tell the user that DPaintV requires AmigaDos 2.04
;
(if (< AmigaDos_Version 37)
(
(abort
"DeluxePaint V ist unter dieser AmigaDOS-Version nicht ausfhrbar. "
"DeluxePaint V erfordert mindestens AmigaDOS 2.04."
)
)
)
;
; ask the user if this is a floppy or harddisk installation
; and set the value of <hd_install>
;
(user expert_user_level)
(set hd_install
(= 0
(askchoice
(prompt "\nInstallationsmethode whlen:")
(help
"DeluxePaint V muá vor dem Einsatz registriert werden. Dies kann "
"whrend der Installation des Programms auf der Festplatte (oder einem "
"anderen Speichergert) erfolgen oder auf einer Kopie der DeluxePaint-V-"
"Diskette durchgefhrt werden.\n"
" \"Festplatte\" whlen, um DeluxePaint V auf der Festplatte zu installieren.\n"
" \"Diskette\" whlen, um DeluxePaint V auf einer Diskette zu installieren.\n"
"\n"
@askchoice-help
)
(choices "Festplatte" "Diskette")
(default 0)
)
)
)
(user orig_user_level)
(if hd_install
(setup_hd_install)
(setup_floppy_install))
(copy_volume1)
(copy_volume2)
(copy_volume3)
(copy_volume4)
(do_exit)